from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
import time

driver = webdriver.Chrome(service=Service('chromedriver.exe'))
driver.maximize_window()
driver.get('https://www.example.com/')
# 双击
d = driver.find_element(By.TAG_NAME, 'd')
ActionChains(driver).double_click(d).perform()
time.sleep(20)
